package com.wdcloud.netlibrary.dispatcher;


import com.wdcloud.netlibrary.callback.DownloadFileCallback;
import com.wdcloud.netlibrary.callback.NetWorkCallback;

/**
 */

public interface IDispatcher {

    <T> void enqueue(NetWorkCallback<T> callback);

    <T> T execute(Class<T> c) throws Exception;

    <T> void execute(NetWorkCallback<T> callback);

    void downLoad(DownloadFileCallback callback);

    void downLoadWithMemory(DownloadFileCallback callback);

    IDispatcher backOnMain(boolean flag);

    boolean isLocal();

}
